package com.fl.niu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author qj
 */
@Data
@TableName("admin")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户名
     */
    @TableField("username")
    @ApiModelProperty(value = "头像")
    private String username;
    /**
     * 密码
     */
    @TableField("password")
    @ApiModelProperty(value = "头像")
    private String password;
    /**
     * 头像
     */
    @TableField("icon")
    @ApiModelProperty(value = "头像")
    private String icon;
    /**
     * 邮箱
     */
    @TableField("email")
    @ApiModelProperty(value = "邮箱")
    private String email;
    /**
     * 昵称
     */
    @TableField("nick_name")
    @ApiModelProperty(value = "昵称")
    private String nickName;
    /**
     * 备注信息
     */
    @TableField("note")
    @ApiModelProperty(value = "备注信息")
    private String note;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 最后登录时间
     */
    @TableField("login_time")
    @ApiModelProperty(value = "最后登录时间")
    private Date loginTime;
    /**
     * 帐号启用状态
     */
    @TableField("status")
    @ApiModelProperty(value = "帐号启用状态：0->禁用；1->启用")
    private Integer status;


}